package day05;
/** 数组遍历的演示 */
public class ArrayDemo4 {
    public static void main(String[] args) {
        int[] arr = new int[10];
        for (int i =0;i<arr.length;i++){//遍历arr数组
            //给每个元素赋值
            arr[i]=(int)(Math.random()*100);
            //输出每个元素的值
            System.out.print(arr[i]+"\t");
        }
    }
}
